home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / dvtools / demos / dwpdemo / dwp_data.c next >
C/C++ Source or Header  |  1997-05-08  |  2KB  |  58 lines

  1. #ifndef lint
  2. static char SccsId[]= "@(#)dwp_data.c    V1.6    3/15/95";
  3. #endif
  4.  
  5. /*-----------------------------------------------------------------------------------
  6. | file name -- dwp_data.c
  7. |-----------------------------------------------------------------------------------*/
  8. #include "std.h"
  9. #include "dvstd.h"
  10. #include "dvtools.h"
  11.  
  12. #include "dwp_vars.h"
  13. #include "dwp_data.h"
  14. #include "dwp_fundecl.h"
  15.  
  16. /* Declaration globalvariables for REBIND DATA variables */
  17.  
  18. FLOAT setpoint;
  19. FLOAT highvalue;
  20. FLOAT lowvalue;
  21. FLOAT lolo;
  22. FLOAT hihi;
  23. FLOAT alarm_status = 0;
  24.  
  25. FLOAT valvenumber;
  26. FLOAT v1rotate;
  27. FLOAT v2rotate;
  28. FLOAT v3rotate;
  29. FLOAT v4rotate;
  30.  
  31. FLOAT toggle_overlay = 0;
  32.  
  33.  
  34. /* DECLARATION of varname:data_info table
  35. |       Each time you add a variable to the view that you want
  36. |       to rebind to application data, you should add it to
  37. |       this table.
  38. |
  39. |       If you add an entry to DataTable, make sure you increment
  40. |       MAX_APP_VARS (defined in app_vars.h) accordingly.
  41. */
  42. DATA_INFO DataInfo[MAX_APP_VARS] =
  43. {
  44.  
  45.   "Setpoint", (ADDRESS) & setpoint,
  46.   "HighValue", (ADDRESS) & highvalue,
  47.   "LowValue", (ADDRESS) & lowvalue,
  48.   "Valve Number", (ADDRESS) & valvenumber,
  49.   "Hi Hi", (ADDRESS) & hihi,
  50.   "Lo Lo", (ADDRESS) & lolo,
  51.   "v1rotate", (ADDRESS) & v1rotate,
  52.   "v2rotate", (ADDRESS) & v2rotate,
  53.   "v3rotate", (ADDRESS) & v3rotate,
  54.   "v4rotate", (ADDRESS) & v4rotate,
  55.   "alarm", (ADDRESS) & alarm_status,
  56.   "toggle_overlay", (ADDRESS) & toggle_overlay,
  57. };
  58.